package com.shortlink.server.dto.shortlinkmapper;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.*;

import java.time.LocalDate;

/**
 * 短链接映射插入请求实体
 *
 * @author wp
 */
@AllArgsConstructor
@NoArgsConstructor
@Data
public class ShortLinkMapperInsertReqDTO {
    /**
     * ID
     */
    private Long id;
    /**
     * 域名
     */
    private String domain;
    /**
     * 短链接
     */
    private String shortUri;
    /**
     * 原始链接
     */
    private String originUrl;
    /**
     * 有效期
     */
    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
    private LocalDate validDate;
}
